package com.serene.im;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
// 扫描mybatis mapper包路径
@MapperScan(basePackages = "com.serene.im.mapper")
//扫描 所有需要的包, 包含一些自用的工具类包 所在的路径
@ComponentScan(basePackages= {"com.serene.im"})
public class SereneImApplication {

    @Bean
    public SpringBeanUtil getSpringBeanUtil() {
        return new SpringBeanUtil();
    }

    public static void main(String[] args) {
        SpringApplication.run(SereneImApplication.class, args);
    }

}
